const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // token
  token: state => state.user.token,
  userID: state => state.user.userID,
  companyId: state => state.user.companyId,
  // 头像
  staffPhoto: state => state.user.userInfo.staffPhoto,
  // 用户信息中的名字
  name: state => state.user.userInfo.username,
  // 权限的标识
  menus: state => state.user.userInfo.roles.menus,
  // 按钮功能
  points: state => state.user.userInfo.roles.points,
  // 左侧菜单列表
  routerList: state => state.permission.routerList
}
export default getters
